package com.htht.job.admin.controller.monitor;

import com.htht.job.core.api.DubboService;
import com.htht.job.vo.Monitor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * Created by zzj on 2018/1/31.
 */
@Controller
@RequestMapping("/monitor")
public class MonitorController {
    @Autowired
    private DubboService dubboService;
    @RequestMapping
    public String index(Model model) {
        List<Monitor> list=dubboService.findAllMonitor();
        model.addAttribute("list",list);
        return  "/monitor/monitor.index";
    }
}
